package com.zhl.springboot_zipkin_study_service.service;

import com.alibaba.fastjson.JSONObject;
import com.zhl.springboot_zipkin_study_service_api.dao.UserinfoDAO;
import com.zhl.springboot_zipkin_study_service_api.pojo.Userinfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;

@RestController
public class UserinfoService implements com.zhl.springboot_zipkin_study_service_api.service.UserinfoService {
    @Autowired
    UserinfoDAO userinfoDAO;
    @Override
    public ArrayList<Userinfo> findall(String test_value) {
        System.out.println("测试数据test_value："+test_value);
        System.out.println("测试数据find8："+JSONObject.toJSONString(userinfoDAO.find8()));
        System.out.println("测试数据find9："+JSONObject.toJSONString(userinfoDAO.find9()));
        return userinfoDAO.findall();
    }
}
